<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">客服中心</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      用户邀请记录
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <div class="form-group pull-in clearfix">
        <div class="col-sm-2">
          <label><font><font>姓名:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="inviterecordData.FullName">
        </div>
        <div class="col-sm-2">
          <label><font><font>电话:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="inviterecordData.Mobile">
        </div>
        <div class="col-sm-2">
        <label><font><font>操作类型:</font></font></label>
        <select class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" ng-model="inviterecordData.Type" name="">
          <option value="0">全部</option>   
          <option value="1">分享好友</option>
          <option value="2">分享注册</option>
        </select>
      </div>
        <div class="form-group pull-in clearfix" ng-controller="DatepickerDemoCtrl">
          <div class="col-sm-2">
            <label><font><font>开始时间:</font></font></label>
            <p class="input-group">
              <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
              </span>
              <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="inviterecordData.StartTime"
                is-open="opened" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
            </p>
          </div>
          <div class="col-sm-2">
            <label><font><font>结束时间:</font></font></label>
            <p class="input-group">
              <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="open1($event)"><i class="glyphicon glyphicon-calendar"></i></button>
              </span>
              <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open1($event)" ng-model="inviterecordData.EndTime"
                is-open="opened1" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
            </p>
          </div>
        </div>
      </div>
      <div class="form-group pull-in clearfix">
        <div class="col-sm-1">
          <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="queryUser()">查询</button>
          <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>  
        </div>
      </div>      
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="min-width:80px">用户手机号</th>
            <th style="min-width:80px">用户姓名</th>
            <th style="min-width:90px">操作类型</th>
            <th style="min-width:100px">确认时间</th>
            <th style="min-width:100px">状态</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="inviterecord==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in inviterecord">
            <td ng-bind="obj.Mobile"></td>
            <td ng-bind="obj.FullName"></td>
            <td ng-bind="obj.Type==1?'分享好友':'分享注册'"></td>
            <td ng-bind="obj.CreateTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td>成功</td> 
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{inviterecordData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="UserListCount+'条数据'"></span></span>
    
  </div>
